<html><head>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
	
	<script src="js/jquery-1.11.3.js"></script>
	<script src="js/bootstrap.js"></script>
	</head>
	<body>
		<nav class="navbar navbar-default">
  <div class="container-fluid">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="home_page.php" style="font-size:x-large">点餐系统</a>
    </div>
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">订单管理<span class="caret"></span></a>
          <ul class="dropdown-menu">
            <li><a href="order_list.php">订单列表</a></li>
            <li><a href="order_record.php">订单记录</a></li>
          </ul>
        </li>
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">菜单管理<span class="caret"></span></a>
          <ul class="dropdown-menu">
            <li><a href="accession_v.php">添加菜品</a></li>
            <li><a href="v_list.php">菜品列表</a></li>
            <li role="separator" class="divider"></li>
			<li><a href="accession_v_type.php">添加菜品类型</a></li>
			<li><a href="v_type_list.php">菜品类型列表</a></li>
          </ul>
        </li>
		<li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">餐桌管理<span class="caret"></span></a>
          <ul class="dropdown-menu">
            <li><a href="accesion_table.php">添加餐桌</a></li>
            <li><a href="table_list.php">餐桌列表</a></li>
          </ul>
        </li>
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">登录管理<span class="caret"></span></a>
          <ul class="dropdown-menu">
			<li><a href="#" data-toggle="modal" data-target="#a">关于点餐系统</a></li>
			<li role="separator" class="divider"></li>
            <li><a href="login_message.php">修改登录信息</a></li>
            <li><a href="#exitModal" data-toggle="modal">退出登录</a></li>
          </ul>
        </li>
      </ul>
	   <div class="modal fade" id="a" tabindex="-1" >
        	<div class="modal-dialog">
        		<div class="modal-content">
        			<div class="modal-header">
        				<button type="button" class="close" data-dismiss="modal">
        					<span>&times;</span><span class="sr-only">Close</span>
        				</button>
        				<div class="modal-title" style="font-size:x-large">关于点餐系统</div>
        			</div>
        			<div class="modal-body">
        			    纯属娱乐，请勿在意
        			</div>
        			<div class="modal-footer">
        				<button type="button" class="btn btn-primary" data-dismiss="modal">确定</button>
        			</div>
        		</div>
        	</div>
        </div>
        <div class="modal fade" id="exitModal" tabindex="-1" >
        	<div class="modal-dialog">
        		<div class="modal-content">
        			<div class="modal-header">
        				<button type="button" class="close" data-dismiss="modal">
        					<span>&times;</span><span class="sr-only">Close</span>
        				</button>
        				<div class="modal-title" style="font-size:x-large">确定退出登录</div>
        			</div>
        			<div class="modal-body">
        			     你确定要退出登录吗？
        			</div>
        			<div class="modal-footer">
        				<a type="button" class="btn btn-primary" href="login.php">确定</a>
        				<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
        			</div>
        		</div>
        	</div>
        </div>

    </div>
  </div>
</nav>
	<div class="container">
		<div class="row">
			<div class="col-xs-2">
				<a href="accession_v.php" class="btn btn-default btn-block">添加菜单</a>
				<a href="home_page.php" class="btn btn-default btn-block">返回首页</a>
			</div>
	<div class="container">
		<div class="row">
			<div class="col-xs-9">
				<div class="panel panel-primary">
					<div class="panel-heading">
							<span class="glyphicon glyphicon-th-list"></span>菜单列表
					</div>
					<div class="panel-body">
						<table class="table table-bordered">
					<tr>
						<th>菜品</th>
						<th>类型</th>
						<th>单价（元）</th>
						<th>&nbsp;</th>
					</tr>
					<?php
							@session_start();
							@$userName=$_REQUEST['price'];
							$pdo=new PDO('mysql:dbname=BB;charset=utf8','root');
							if(!empty($userName)){$add=$pdo->prepare('insert into price(Cname,value,typeid,url) value(:name)');
							$add1->execute(array('name'=>$userName));
							}
							$sel=$pdo->prepare('select * from price');
							$sel->execute(array());
							$data2=$sel->fetchAll(PDO::FETCH_NAMED);
							foreach($data2 as $item2){
								?>	
					<tr>
						<td><?php echo $item2['Cname']; ?></td>
						<td><?php echo $item2['typeid']; ?></td>
						<td><?php echo $item2['value']; ?></td>
						
						<td><a href="#">结账</a>
						<a href="del.php?id=<?php echo $item2['id'] ?>">删除</a>
						<div class="modal fade" id="cc">
							<div class="modal-dialog">
								<div class="modal-content">
									<div class="modal-header">
										<button type="button" class="close" data-dismiss="modal">
										<span>&times;</span>
										<span class="sr-only">Close</span>
										</button>
										<h2 class="modal-title">注意</h2>
									</div>
									<div class="modal-body">
										是否确定删除此菜单
									</div>
									<div class="modal-footer">
										<a type="button" class="btn btn-primary" href="#">确定</a>
										<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
									</div>
								</div>
							
							</div>
						</div>
						</td>
					</tr>
					<?php } ?>
					</table>
					</div>
				</div>
			</div>
		</div>
	</div>
		</div>
	</div>
</html>